<template>
  <el-dialog
    :visible.sync="visible"
    :before-close="beforeClose"
    :close-on-click-modal="false"
    title="扫黑结果"
    append-to-body
    class="dialog-sm"
    custom-class="max-w"
    top="30px"
    width="90%"
    style="--max-width: 1200px"
    ref="searchDialog"
  >
    <black-view v-bind="$attrs"></black-view>
  </el-dialog>
</template>

<script>
import BlackView from '@/credit/views/city/program/black/BlackView'

export default {
  components: {
    BlackView,
  },
  props: {
    visible: Boolean,
  },
  data() {
    return {
      active: 'noApproval',
    }
  },
  computed: {},
  watch: {},
  mounted() {},
  created() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
      this.$refs.panel && this.$refs.panel.reset()
    },
    onScrollTop() {
      this.$refs.searchDialog && this.$refs.searchDialog.$el.scrollTo({ top: 0 })
    },
  },
}
</script>
<style lang="scss" scoped></style>
